package app.config;

import app.controllers.filters.CatchAllFilter;
import org.javalite.activeweb.AbstractControllerConfig;
import org.javalite.activeweb.AppContext;
import org.javalite.activeweb.controller_filters.DBConnectionFilter;
import org.javalite.activeweb.controller_filters.TimingFilter;

/**
 *
 * @author Kseniya Artsiukhova <kartsiukhova@productiveedge.com>
 */
public class AppControllerConfig extends AbstractControllerConfig {

    @Override
    public void init(AppContext appContext) {

        addGlobalFilters(
                new TimingFilter(),
                new DBConnectionFilter("default"),
                new CatchAllFilter());
    }
}
